package ve.lm.hrms_cy.Entity.Request;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;

public class EmployeeQueryRequest {

    private Integer current;
    private Integer size;
    private Long id;
    private String keyword;
    private String gender;
    private LocalDateTime comeStart;
    private LocalDateTime comeEnd;
    private LocalDateTime leaveStart;
    private LocalDateTime leaveEnd;

    @JsonCreator
    public EmployeeQueryRequest(@JsonProperty("current") Integer current ,@JsonProperty("size") Integer size ,@JsonProperty("id") Long id ,@JsonProperty("keyword") String keyword ,@JsonProperty("gender") String gender ,@JsonProperty("comeStartTime") LocalDateTime comeStart ,@JsonProperty("comeEndTime") LocalDateTime comeEnd ,@JsonProperty("leaveStartTime") LocalDateTime leaveStart ,@JsonProperty("leaveEndTime") LocalDateTime leaveEnd ){

        this.current=current;
        this.size=size;
        this.id=id;
        this.keyword=keyword;
        this.gender=gender;
        this.comeStart=comeStart;
        this.comeEnd=comeEnd;
        this.leaveStart=leaveStart;
        this.leaveEnd=leaveEnd;

    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public LocalDateTime getComeStart() {
        return comeStart;
    }

    public void setComeStart(LocalDateTime comeStart) {
        this.comeStart = comeStart;
    }

    public LocalDateTime getComeEnd() {
        return comeEnd;
    }

    public void setComeEnd(LocalDateTime comeEnd) {
        this.comeEnd = comeEnd;
    }

    public LocalDateTime getLeaveStart() {
        return leaveStart;
    }

    public void setLeaveStart(LocalDateTime leaveStart) {
        this.leaveStart = leaveStart;
    }

    public LocalDateTime getLeaveEnd() {
        return leaveEnd;
    }

    public void setLeaveEnd(LocalDateTime leaveEnd) {
        this.leaveEnd = leaveEnd;
    }
}
